/**********************************************************
*
*   @file    useri2cReg.h
*   @author  Derrick Wang
*   @time    2018-4-26
*		@brief   定义I2c寄存器相关信息
*
*
***********************************************************/

#ifndef __USER_I2C_REG_H
#define __USER_I2C_REG_H

#define I2C_FIXED_ADDRESS      0X05   //模块固定地址
#define VERSION                0X10//版本号
//模块总寄存器数量
#define ALL_REG_NUMBER 55

//模块通用寄存器
#define REG_CHECK               0X0A 
#define REG_VERSION             0X0B
#define REG_LED                 0X0C
#define REG_RESET               0X0D
 
//模块特殊指令
#define REG_KEY0_SHORT_RELEASE        0X30
#define REG_KEY1_SHORT_RELEASE        0X31
#define REG_KEY2_SHORT_RELEASE        0X32
#define REG_KEY3_SHORT_RELEASE        0X33
#define REG_KEY4_SHORT_RELEASE        0X34
#define REG_KEY5_SHORT_RELEASE        0X35
#define REG_KEY6_SHORT_RELEASE        0X36
#define REG_KEY7_SHORT_RELEASE        0X37
#define REG_KEY8_SHORT_RELEASE        0X38
#define REG_KEY9_SHORT_RELEASE        0X39
#define REG_KEYA_SHORT_RELEASE        0X3A
#define REG_KEYB_SHORT_RELEASE        0X3B
#define REG_KEYC_SHORT_RELEASE        0X3C
#define REG_KEYD_SHORT_RELEASE        0X3D
#define REG_KEYE_SHORT_RELEASE        0X3E
#define REG_KEYF_SHORT_RELEASE        0X3F

#define REG_KEY0_LONG_RELEASE        0X40
#define REG_KEY1_LONG_RELEASE        0X41
#define REG_KEY2_LONG_RELEASE        0X42
#define REG_KEY3_LONG_RELEASE        0X43
#define REG_KEY4_LONG_RELEASE        0X44
#define REG_KEY5_LONG_RELEASE        0X45
#define REG_KEY6_LONG_RELEASE        0X46
#define REG_KEY7_LONG_RELEASE        0X47
#define REG_KEY8_LONG_RELEASE        0X48
#define REG_KEY9_LONG_RELEASE        0X49
#define REG_KEYA_LONG_RELEASE        0X4A
#define REG_KEYB_LONG_RELEASE        0X4B
#define REG_KEYC_LONG_RELEASE        0X4C
#define REG_KEYD_LONG_RELEASE        0X4D
#define REG_KEYE_LONG_RELEASE        0X4E
#define REG_KEYF_LONG_RELEASE        0X4F

#define REG_KEY0_LONG        0X50
#define REG_KEY1_LONG        0X51
#define REG_KEY2_LONG        0X52
#define REG_KEY3_LONG        0X53
#define REG_KEY4_LONG        0X54
#define REG_KEY5_LONG        0X55
#define REG_KEY6_LONG        0X56
#define REG_KEY7_LONG        0X57
#define REG_KEY8_LONG        0X58
#define REG_KEY9_LONG        0X59
#define REG_KEYA_LONG        0X5A
#define REG_KEYB_LONG        0X5B
#define REG_KEYC_LONG        0X5C
#define REG_KEYD_LONG        0X5D
#define REG_KEYE_LONG        0X5E
#define REG_KEYF_LONG        0X5F

#define REG_ALLKEY_SHORT_RELEASE       0X60
#define REG_ALLKEY_LONG_RELEASE        0X61
#define REG_ALLKEY_LONG          		   0X62


#endif
